﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Win32Proxy.Structs
{
    /// <summary>
    /// 矩形结构
    /// </summary>
    [StructLayout(LayoutKind.Sequential)]
    public struct Rectangle
    {
        public int X;
        public int Y;
        public int Width;
        public int Height;

        public Rectangle(int x, int y, int width, int height)
        {
            X= x;
            Y= y;
            Width= width; Height= height;
        }

        public override string ToString()
        {
            return $"{{X={X},Y={Y},Width={Width},Height={Height}}}";
        }
    }
}
